package com.lili.operate.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lili.model.operate.CustomWords;

import java.util.Map;

public interface CustomWordsService {

    /**
     * 更新分词内容
     * @param name
     * @param id
     * @return
     */
    public int updateCustomWords(String name,long id);

    /**
     * 更新分词内容
     * @param id
     * @return
     */
    public int deleteCustomWords(long id);

    /**
     * 分页查询分词
     * @param map
     * @return
     */
    public Page<CustomWords> queryCustomWords(Map map);

    /**
     * 新增分词
     * @param customWords
     * @return
     */
    public int saveCustomWords(CustomWords customWords);
}
